<template>
  <!-- antd 国际化 -->
  <ConfigProvider :locale="getAntdLocale">
    <Layout>
      <MenuLayout />
    </Layout>
  </ConfigProvider>
</template>

<script setup lang="ts">
// 解决日期时间国际化问题
import { ConfigProvider } from 'ant-design-vue';
import Layout from '@/components/Layout/index.vue';
import { useAppI18Hooks } from './App';
import { useGlobal } from '@/store/modules/global';
const useGlobalStroe = useGlobal();
const { getAntdLocale } = useAppI18Hooks();
// 获取系统的字典表
onBeforeMount(() => {
  useGlobalStroe.fetchDictionaryTable();
});
</script>
<style scoped lang="less">
nav {
  width: 100%;
  font-size: 14px;
  text-align: center;
  margin-top: 25px;
}
nav a.router-link-exact-active {
  color: var(--color-text);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}
</style>
